package com.deer.wms.ware.task.model.pickTask;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @author : wei
 * @since : 2022-01-17 19:29:40
 **/
@Getter
@Setter
@NoArgsConstructor
public class PickBill {

    /**
     * 主键
     */
    @Id
    @TableId(type = IdType.AUTO)
    @Column(name = "pick_bill_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer pickBillId;

    /**
     * 拣货单号
     */
    private String pickBillCode;

    /**
     * 状态<p>
     *     0-新建  1-已确认
     */
    private Integer state;

    /**
     * SO明细id
     */
    private Integer soDetailId;

    /**
     * SO单据id
     */
    private Integer soMasterId;

    /**
     * 仓库id
     */
    private Integer wareId;

    /**
     * 仓库名
     */
    private String wareName;

    /**
     * 货主id
     */
    private Integer organizationId;

    /**
     * 货主名
     */
    private String organizationName;

    /**
     * 库位编码
     */
    private String cellCode;

    /**
     * 物料编码
     */
    private String itemCode;

    /**
     * 物料名
     */
    private String itemName;

    /**
     * 批次id
     */
    private Integer batchId;

    /**
     * 批次号
     */
    private String batchName;

    /**
     * 容器编码
     */
    private String boxCode;

    /**
     * 单位id
     */
    private Integer packDetailId;

    /**
     * 单位描述
     */
    private String packDescribe;

    /**
     * 拣货数量
     */
    private Double qty;

    /**
     * 库存id
     */
    @Column(name = "inventory_id")
    private Integer inventoryId;

    /**
     * ???
     */
    @Column(name="source")
    private Integer source;

    /**
     * ??
     */
    @Column(name="to_cell_code")
    private String toCellCode;

    /**
     * ???
     */
    @Column(name="tracking_num")
    private String trackingNum;

    @Column(name="pick_time")
    private String pickTime;

    @Column(name="pick_user_id")
    private Integer pickUserId;

    @Column(name="pick_user_name")
    private String pickUserName;

    @Column(name="check_time")
    private String checkTime;

    @Column(name="check_user_id")
    private Integer checkUserId;

    @Column(name="check_user_name")
    private String checkUserName;

    @Column(name="delivery_time")
    private String deliveryTime;

    @Column(name="delivery_user_id")
    private Integer deliveryUserId;

    @Column(name="delivery_user_name")
    private String deliveryUserName;

    /**
     * 备注
     */
    @Column(name="memo")
    private String memo;

    private Double seededQuantity;

    private Integer isParent;
}
